package com.pm.comm.dao;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.mybatis.spring.annotation.MapperScan;

import com.pm.entity.CongressHall;
@MapperScan
public interface CongressHallMapper {
	
	@Delete("DELETE FROM tb_picture WHERE congress_hall_id=#{congressHallId};DELETE FROM tb_congress_hall WHERE congress_hall_id =#{congressHallId}")
    int deleteByPrimaryKey(Integer congressHallId);
	@Insert("INSERT INTO tb_congress_hall(congress_hall_headline,congress_hall_content,congress_hall_time,user_id) VALUES (#{congressHallHeadline},#{congressHallContent},#{congressHallTime},#{userId});INSERT INTO tb_picture(picture_name,picture_imges,congress_hall_id) VALUES (#{pictureName},#{pictureImges},#{congressHallId})")
    int insert(CongressHall record);

    int insertSelective(CongressHall record);

    CongressHall selectByPrimaryKey(Integer congressHallId);

    int updateByPrimaryKeySelective(CongressHall record);

    int updateByPrimaryKeyWithBLOBs(CongressHall record);

    int updateByPrimaryKey(CongressHall record);
}